package com.beta.cms.test.demo.quartz.complex;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.Scheduler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class JobDemo implements Job {
	private final Logger log = LoggerFactory.getLogger(this.getClass());

	public void execute(JobExecutionContext context) throws JobExecutionException {
		String jobName = (String) context.getJobDetail().getJobDataMap().get(Scheduler.DEFAULT_GROUP);
		log.info("执行job ------" + jobName + " 我是持久化的定时任务" + "---" + new Date() + "-----");
	}

}
